import { defHttp } from '/@/utils/http/axios';
export const testUrl = '/deviceConnect';
/**
 * api
 *
 * @author gummybear
 * @date 2023/06/29 19:15
 */
export class DeviceConnectApi {
  /**
   * 获取分页列表
   *
   * @author gummybear
   * @date 2023/06/29 19:15
   */
  static findPage(params) {
    return defHttp.get({ url: '/deviceConnect/page', params });
  }

  /**
   * 新增
   *
   * @author gummybear
   * @date 2023/06/29 19:15
   */
  static add(params) {
    return defHttp.post({ url: testUrl, params }, {isTransformResponse : false});
  }

  /**
   * 修改
   *
   * @author gummybear
   * @date 2023/06/29 19:15
   */
  static edit(params) {
    return defHttp.post({ url: testUrl, params }, {isTransformResponse: false});
  }

  /**
   * 删除
   *
   * @author gummybear
   * @date 2023/06/29 19:15
   */
  static delete(params) {
    return defHttp.post({ url: testUrl, params }, {isTransformResponse: false});
  }

  /**
   * 详情
   *
   * @author gummybear
   * @date 2023/06/29 19:15
   */
  static detail(params) {
    return defHttp.get({ url: '/deviceConnect/detail', params });
  }
}
